<template>
  <div id="app">
    <!-- <img alt="Vue logo" src="./assets/logo.png">
    <HelloWorld msg="Welcome to Your Vue.js App"/> -->
    <el-container>
      <el-aside width="200px">
        <bar_menu></bar_menu>
      </el-aside>
      <el-container>
        <el-header>
          <container_header></container_header>
        </el-header>
        <el-main>
          <!-- 为路由放置一个占位符 -->
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import bar_menu from '@/components/bar-menu.vue'
import container_header from '@/components/header.vue'

export default {
  name: 'App',
  components: {
    bar_menu,
    container_header
  }
}
</script>

<style lang="less">
  .el-header, .el-footer {
    background-color: #B3C0D1;
    color: #333;
    text-align: center;
    line-height: 60px;
  }
  .el-header{
    background-color: #000;
  }
  
  .el-aside {
    background-color: rgb(84, 92, 100);
    // color: #333;
    h5{
      text-align: center;
      color: white;
      // line-height: 48px;
      font-size: 16px;
      font-weight: 400;
      // background-color: #333;
    }
    /* text-align: center; */
    /* line-height: 200px; */
  }
  
  .el-main {
    background-color: #E9EEF3;
    color: #333;
    text-align: center;
    line-height: 160px;
  }
  
  body > .el-container {
    margin-bottom: 40px;
  }
  
  .el-container:nth-child(5) .el-aside,
  .el-container:nth-child(6) .el-aside {
    line-height: 260px;
  }
  
  .el-container:nth-child(7) .el-aside {
    line-height: 320px;
  }
</style>
